package com.panshi.handler;

import com.jfinal.handler.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by tony on 2017/7/11.
 */
public class DruidHandler extends Handler {
    public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {
        // 对于websocket 不交予 jfinal 处理
        if (target.indexOf("/druid") == -1) {
            // nextHandler.handle(target, request, response, isHandled);
            next.handle(target, request, response, isHandled);
        }

    }
}
